package personal.hrsw1.demo1.mapper;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import personal.hrsw1.demo1.domain.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

@Mapper
@TableName("goods")
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select * from goods")
    List<Goods> selectAll();
    @Select("select * from goods where id=#{id}")
    List<Goods> findAll(int id);
}